<div class="blazorise-codeblock">
<div class="csharp"><pre>
<span class="keyword">public</span> Task&lt;<span class="keyword">string</span>&gt; GetDocumentContent()
{
    <span class="keyword">var</span> content = File.ReadAllTextAsync(<span class="stringCSharpVerbatim"><span class="atSign">&#64;</span>&quot;Document.txt&quot;</span>)
        .ContinueWith(t =&gt;
        {
            <span class="keyword">return</span> t.Result;
        });
    <span class="keyword">return</span> content;
}
</pre></div>
</div>
